local sk__xiwu = fk.CreateSkill {

  name = "sk__xiwu",

  tags = {  },

}



sk__xiwu:addEffect(fk.CardEffectCancelledOut, {
  name = "sk__xiwu",
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(sk__xiwu.name) and data.card.trueName == "slash"
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    player:drawCards(1, sk__xiwu.name)
    local to = data.to
    if player.dead or to.dead or to:isNude() then return end
    local card = room:askForCardChosen(player, to, "he", sk__xiwu.name, "#sk__xiwu-discard::"..data.to.id)
    room:throwCard(card, sk__xiwu.name, to, to)
  end,
})

return sk__xiwu